//
//  TGCity.m
//  GroupBuy
//
//  Created by wwj on 15/11/3.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import "TGCityModel.h"
#import "TGDistrictModel.h"
#import "MJExtension.h"

@implementation TGCityModel

-(void)setDistricts:(NSArray *)districts{
     NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dict in districts) {
        TGDistrictModel *district = [TGDistrictModel mj_objectWithKeyValues:dict];
        [array addObject:district];
    }
    _districts = array;
}
@end
